package com.yudean.esb.dao.mds;

import com.yudean.esb.domain.mds.MdsArCustomers;
import com.yudean.esb.mapper.mds.MdsArCustomersMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class MdsArCustomersDao {

    @Resource
    public MdsArCustomersMapper mdsArCustomersMapper;

    public List<MdsArCustomers> getErpMdsArCustomersByName(String customerName) {
        return mdsArCustomersMapper.getErpMdsArCustomersByName(customerName);
    }

    public int getErpMdsArCustomersCount(String customerName) {
        return mdsArCustomersMapper.getErpMdsArCustomersCount(customerName);
    }

}
